package com.ktjy.cvs.config;

import org.apache.commons.dbcp2.BasicDataSource;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author Jane
 * @date 2024-12-20 10:58
 *


//数据源
<bean id="t373DataSource"
class="org.apache.commons.dbcp2.BasicDataSource" destroy-method="close"
p:username="${user}"
p:password="${password}"
p:driverClassName="${driver}"
p:url="${url}"
/>

 */
//@Configuration
public class MybatisConfig {
    @Bean
    public BasicDataSource t373DataSource(){
        BasicDataSource ds = new BasicDataSource();
        ds.setPassword("123456");
        return ds;

    }
}
